package com.ruoyi.system.mapper;
import com.ruoyi.system.entity.SafetyRulesRegulations;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * 安全规章制度表(SafetyRulesRegulations)表数据库访问层
 *
 * @author makejava
 * @since 2023-03-20 16:13:08
 */
public interface SafetyRulesRegulationsMapper {

    /**
     * 通过ID查询单条数据
     * @param id 主键
     * @return 实例对象
     */
    SafetyRulesRegulations queryById(Integer id);

    /**
     * 查询指定行数据
     * @param safetyRulesRegulations 查询条件
     * @return 对象列表
     */
    List<SafetyRulesRegulations> queryAllByLimit(SafetyRulesRegulations safetyRulesRegulations);

    /**
     * 统计总行数
     * @param safetyRulesRegulations 查询条件
     * @return 总行数
     */
    long count(SafetyRulesRegulations safetyRulesRegulations);

    /**
     * 新增数据
     * @param safetyRulesRegulations 实例对象
     * @return 影响行数
     */
    int insert(SafetyRulesRegulations safetyRulesRegulations);

    /**
     * 修改数据
     * @param safetyRulesRegulations 实例对象
     * @return 影响行数
     */
    int update(SafetyRulesRegulations safetyRulesRegulations);

    /**
     * 通过主键删除数据
     * @param id 主键
     * @return 影响行数
     */
    int deleteById(Integer id);

    List<SafetyRulesRegulations> queryAll(SafetyRulesRegulations safetyRulesRegulations);

    void insertBatch(List<SafetyRulesRegulations> safetyRulesRegulations);
}

